package com.stlm2.dems.entity;

/**
 * 退款货类型
 */
public enum RefundType {

    RefundGoods(1) {
        public String toString() {
            return "退款退货";
        }
    },
    RefundMoney(2) {
        public String toString() {
            return "仅退款";
        }
    };

    private final int val;

    RefundType(int n) {
        val = n;
    }

    public int getIntValue() {
        return val;
    }

    public static RefundType getByIntValue(int n) {
        switch (n) {
            case 1:
                return RefundGoods;
            case 2:
                return RefundMoney;
            default:
                return null;
        }
    }

}
